package prefuse.tp.svn;

import prefuse.action.layout.graph.RadialTreeLayout;
import prefuse.visual.NodeItem;

 public class GraphRadial_FlexibleLayout extends RadialTreeLayout{
	private double scaleX=1.0,scaleY=1.0;
	
	public GraphRadial_FlexibleLayout(String group) {
	    super(group);
	}
	
	protected void setPolarLocation(NodeItem n, NodeItem p, double r, double t) {
	    setX(n, p, m_origin.getX() + scaleX*r*Math.cos(t));
	    setY(n, p, m_origin.getY() + scaleY*r*Math.sin(t));    
	}
	
	public void setRescale(double x,double y) {
	    scaleX=x;
	    scaleY=y;
	}
}